package com.example.demo.controller.netty;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;

/**
 * @author 高俊
 * @create 2022-03-2022/3/4-13:24
 */
public class ServiceClient {
    public static void main(String[] args) throws Exception{
        Socket socket = new Socket("127.0.0.1", 9090);
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        socket.getOutputStream().write(s.getBytes());
        socket.close();
    }
}

























